package com.example.xingxing.mobilesafe.activity.Part1;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.xingxing.mobilesafe.R;
import com.example.xingxing.mobilesafe.utils.PreferenceUtil;

public class LostAndFindActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (PreferenceUtil.getBoolean("configed", false, this)) {
            setContentView(R.layout.activity_lost_and_find);
        } else  {
            startActivity(new Intent(this, GuideStep1Activity.class));
            finish();
        }

    }
}
